package com.xmy.cultivate.mapper;

import com.xmy.cultivate.entity.RolePermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author min
 * @since 2022-09-25
 */
public interface RolePermissionMapper extends BaseMapper<RolePermission> {


    @Select("select permission_id from role_permission where role_id = #{roleId}")
    public abstract List<Long> getIdListForRoleId(@Param("roleId") Long roleId);
}
